package TestPageBean;

import java.util.List;

public class PageBean {
	private int currPage;	//当前页
	private int totalPage;	//总页数
	private int count;		//总记录数
	private int pageSize=5;	//每页显示的尺寸
	private List list;		//用于储存每页显示的记录的个数
	public int getCurrPage() {
		return currPage;
	}
	public void setCurrPage(int currPage) {
		this.currPage = currPage;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		if(count>0){
			this.count = count;
			//计算分页总数
			totalPage=this.count%pageSize==0?(this.count/pageSize):(this.count/pageSize)+1;	
		}
		
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
		
	}
	public List getList() {
		return list;
	}
	public void setList(List list) {
		this.list = list;
	}
	
}
